package com.lvmama.rhino.service.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lvmama.rhino.mapperDw.CategoryChannelViewMapper;
import com.lvmama.rhino.pojo.CategoryChannelView;
import com.lvmama.rhino.service.CategoryChannelViewService;

/**
 * @Author:caoyong
 * @Description:
 * @Date：2018/5/16
 */
@Service("categoryChannelViewService")
public class CategoryChannelViewServiceImpl implements CategoryChannelViewService {
    private Logger log = Logger.getLogger(CategoryChannelViewServiceImpl.class);

    @Autowired
    private CategoryChannelViewMapper categoryChannelViewMapper;
    
	@Override
	public List<CategoryChannelView> selectCategoryList() {
		log.info("selectCategoryList start" );
		try {
			return categoryChannelViewMapper.selectCategoryList();
		} catch (Exception e) {
			log.error("selectSupperTypeList error:" + e.getMessage(), e);
		}
		return null;
	}

	@Override
	public List<CategoryChannelView> selectChannelList() {
		log.info("selectChannelList start" );
		try {
			return categoryChannelViewMapper.selectChannelList();
		} catch (Exception e) {
			log.error("selectSupperTypeList error:" + e.getMessage(), e);
		}
		return null;
	}
}
